package model

import "gorm.io/gorm"

type WmsWarehouse struct {
	gorm.Model
	Uid      uint    `json:"uid" gorm:"not null;default:0;"`
	Name     string  `json:"name" gorm:"not null;default:'';"`
	Code     string  `json:"code" gorm:"not null;unique;default:'';"`
	Address  string  `json:"address" gorm:"not null;default:'';"`
	Phone    string  `json:"phone" gorm:"not null;default:'';"`
	Enable   int8    `json:"enable" gorm:"not null;default:1;comment: 0=未知 1=启用 2=禁用"`
	Cost     float64 `json:"cost" gorm:"type:decimal(14,4);not null;default:0;comment:费用"`
	ParentId uint    `json:"parentId" gorm:"not null;default:0;comment:仓库ID"`
	Memo     string  `json:"memo" gorm:"not null;default:'';"` // 备注
}
